package org.blog.dao;

import org.apache.ibatis.annotations.Mapper;
import org.blog.entity.User;
import org.blog.entity.param.UserParam;
import org.blog.entity.vo.UserCenterVO;

import java.util.List;
import java.util.Map;

@Mapper
public interface UserMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer userId);

    User selectByUserName(String userName);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    UserCenterVO userCenter(Integer userId);

    List<User> getUsers(Map<String, Object> map);
}